using System;
using System.IO;
using System.IO.Compression;
using System.Text;
namespace 阿里妈妈登录
{
	public class CUtil
	{
		public static int FORM_MSG_TYPE_CHKTMOUT = 3;
		public static int FORM_MSG_TYPE_CLOSENOTLOGINED = 4;
		public static int FORM_MSG_TYPE_LOGINED = 1;
		public static int FORM_MSG_TYPE_NOTOPEN = 2;
		public static string QY_SEVER_HOST = "api.huopinjie.com";
		public static string SEVER_HOST = "api.huopinjie.com";
		public static string parseHtmlGzip(byte[] byteArray, Encoding encoding)
		{
			MemoryStream stream = new MemoryStream(byteArray);
			MemoryStream memoryStream = new MemoryStream();
			GZipStream gZipStream = new GZipStream(stream, CompressionMode.Decompress);
			byte[] array = new byte[1000];
			int count;
			while ((count = gZipStream.Read(array, 0, array.Length)) > 0)
			{
				memoryStream.Write(array, 0, count);
			}
			byteArray = memoryStream.ToArray();
			return encoding.GetString(byteArray);
		}
	}
}
